
<section class="wrapper">

	<section class="panel">
		<div class="inbox-head">
			<div class="col-lg-12">
				<h3>WEB SETTINGS</h3>
			</div>
		</div>
		
		

		<div class="panel-body">
			
			<?php if($this->session->flashdata('message')){?>
			<p class="alert alert-block text-danger"><?php echo $this->session->flashdata('message')?> </p>
			<?php }?>
			
			<div class="col-lg-10">
				<section class="panel">
					<div class="panel-head">

						<form class="form-horizontal" name="web_settings" method="POST"
							action="<?= base_url();?>secure/settings/save">

							<input type="hidden"
								name="id"
								value="<?= $web['settings']->id; ?> " />

							<div class="border-head">
								<h3>General Settings</h3>
							</div>
							<div class="form-group">
								<label class="col-lg-2 control-label"> Site Name</label>

								<div class="col-lg-6">
									<span class="text text-danger"> </span> 
									<input type="text" class="form-control" name="web_title"
										placeholder="Website Name" value="<?= $web['settings']->web_title; ?> " >

								</div>
							</div>

							<div class="form-group">
								<label class="col-lg-2 control-label"> Site Tagline</label>

								<div class="col-lg-10">
									<span class="text text-danger"> </span> <input
										type="text" class="form-control" name="tagline"
										placeholder="Type a Location Name" value="<?= $web['settings']->tagline; ?>">

								</div>
							</div>
							
							<div class="form-group">
								<label class="col-lg-2 control-label"> Site Url <small>(http://sitename.com)</small></label>

								<div class="col-lg-10">
									<span class="text text-danger"> </span> <input
										type="text" class="form-control" name="web_url"
										placeholder="Type a Location Name" value="<?= $web['settings']->web_url; ?>">

								</div>
							</div>


							<div class="border-head">
								<h3>META SETTINGS</h3>
							</div>

							<div class="form-group">
								<label class="col-lg-2 control-label">Meta Title</label>
								<div class="col-lg-6">
									<span class="text text-danger">err </span> <input type="text"
										class="form-control" name="meta_title"
										placeholder="Meta Title.." value="<?= $web['settings']->meta_title; ?>">
								</div>
							</div>

							<div class="form-group">
								<label class="col-lg-2 control-label">Meta Keywords</label>
								<div class="col-lg-10">
									<input type="text" class="form-control"
										placeholder="Meta Keywords (coma separated).." name="meta_keyword" value="<?= $web['settings']->meta_keyword; ?>">
								</div>
							</div>

							<div class="form-group">
								<label class="col-lg-2 control-label">Meta Description</label>
								<div class="col-lg-10">
									<textarea class="form-control" rows="3" name="meta_description"><?= $web['settings']->meta_description; ?></textarea>

								</div>
							</div>


							<div class="border-head">
								<h3>SITE ANALYTICS SETTINGS</h3>
							</div>

							<div class="form-group">
								<label class="col-lg-2 control-label">Google Analytic Code</label>
								<div class="col-lg-10">
									<textarea class="form-control" rows="5" name="google_analytics"><?= $web['settings']->google_analytics; ?></textarea>
								</div>
							</div>

							<div class="border-head">
								<h3>Google Adsense</h3>
							</div>

							<div class="form-group">
								<label class="col-lg-2 control-label"> Publisher ID</label>
								<div class="col-lg-5">
									<input type="text" class="form-control" placeholder="pub-"
										name="adsense_pub_id" value="<?= $web['settings']->adsense_pub_id; ?>">
								</div>
							</div>

							<div class="border-head">
								<h3>Social Sharing</h3>
							</div>

							<div class="form-group col-lg-6">

								<div class="col-lg-12">
									<label class="control-label">Facebook</label> <input
										type="text" class="form-control" placeholder="pub-"
										name="facebook" value="<?= $web['settings']->facebook; ?>">
								</div>
							</div>
							<div class="form-group col-lg-6">
								<div class="col-lg-12">
									<label class="control-label">Twteer</label>
										<input type="text" class="form-control" placeholder="pub-"
											name="twitter" value="<?= $web['settings']->twitter; ?>">
								</div>
							</div>
							<div class="form-group col-lg-6">

								<div class="col-lg-12">
									<label class="control-label">Google Plus</label> <input
										type="text" class="form-control" placeholder="pub-"
										name="google_plus" value="<?= $web['settings']->google_plus; ?>">
								</div>
							</div>
							<div class="form-group col-lg-6">
								<div class="col-lg-12">
									<label class="control-label">LinkedIn</label>
										<input type="text" class="form-control" placeholder="pub-"
											name="linkedin" value="<?= $web['settings']->linkedin; ?>">
								</div>
							</div>

							<div class="border-head">
								<h3>Other Information</h3>
							</div>

							<div class="form-group col-lg-6">

								<div class="col-lg-12">
									<label class="control-label">Email (Default)</label> <input
										type="text" class="form-control" placeholder="Default Email."
										name="default_email" value="<?= $web['settings']->default_email; ?>">
								</div>
							</div>
							<div class="form-group col-lg-6">
								<div class="col-lg-12">
									<label class="control-label">Call Us (Display Top)</label>
										<input type="text" class="form-control" placeholder="Call Now.."
											name="call_now" value="<?= $web['settings']->call_now; ?>">
								</div>
							</div>
							
							
							
							<div class="border-head">
								<h3>Default Location <small class="text-danger">Here you can put your Base Location i.e. United Kingdom or London</small></h3>
							</div>

							
							
							
							<div class="form-group col-lg-12">

								<div class="col-lg-6">
									<label class="control-label">Location (Default)</label> 
									
									<input
										type="text" class="form-control" placeholder="pub-"
										name="default_location" value="<?= $web['settings']->default_location; ?>">
								</div>
                                <div class="col-lg-6">
                                    <label class="control-label">Currency</label>

                                    <input
                                        type="text" class="form-control" placeholder="pub-"
                                        name="currency" value="<?= $web['settings']->currency; ?>">
                                </div>
							</div>
							
							
							<div class="form-group col-lg-12">
								<div class="col-lg-12">
									<label class="control-label">Footer Text</label>
										<input type="text" class="form-control" placeholder="pub-"
											name="footer_text" value="<?= $web['settings']->footer_text; ?>">
								</div>
							</div>
							
							
<p>
							<div class="form-group">
								<div class="1col-lg-offset-2 1col-lg-10">
									<input type="submit" class="pull-right btn btn-success"
										value="Save" name="save_settings" <?php if($this->config->item('mode')=='DEMO'){?>onclick="alert ('Sorry! Not allowed in Demo mode '); return false;" <?} else?>onclick="return confirm('Are you sure ?');"  >
								</div>
							</div>
</p>
						</form>
					</div>

				</section>
			</div>
		</div>
	</section>

</section>
